package com.homework4;

public class Test {
    public static void show(Printer printer){
        printer.print();
    }

    public static void main(String[] args) {
        DotMatrixPrinter d=new DotMatrixPrinter();
        InkpetPrinter i=new InkpetPrinter();
        show(d);
        show(i);
        LaserPrinter l=new LaserPrinter();
        l.print();
    }
}
